package com.qingxin.wuye.entity;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.hibernate.annotations.GenericGenerator;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 车位收费设置
 * WyCarportFee entity. 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "wy_carport_fee")
public class WyCarportFee extends com.qingxin.sys.entity.BaseEntity implements
		java.io.Serializable {

	// Fields
	private static final long serialVersionUID = -5878933981367276654L;
	private String feeid;
	private String gardenid;
	private String areaid;
	private String carportid;
	private String carportCode;
	private String roomCode;
	private String prjcode;
	private String prjname;
	private BigDecimal price;
	private Integer isfee;
	private String cycle;//计费周期
	private String cycleUnit;//周期单位
	private Integer cycleNum;//收费周期数
	@DateTimeFormat(pattern="yyyy-MM-dd")
	private Date beginTime;
	@DateTimeFormat(pattern="yyyy-MM-dd")
	private Date endTime;
	private String remark;
	private String createBy;
	private Date createTime;
	private String updateBy;
	private Date updateTime;

	private String gardenName;
	
	// Constructors

	/** default constructor */
	public WyCarportFee() {
	}

	
	public WyCarportFee(String feeid, String carportCode, String roomCode,
			String prjcode, String prjname, BigDecimal price, Integer isfee,
			String cycle, String cycleUnit, Integer cycleNum, Date beginTime,
			Date endTime, String remark, String gardenName) {
		this.feeid = feeid;
		this.carportCode = carportCode;
		this.roomCode = roomCode;
		this.prjcode = prjcode;
		this.prjname = prjname;
		this.price = price;
		this.isfee = isfee;
		this.cycle = cycle;
		this.cycleUnit = cycleUnit;
		this.cycleNum = cycleNum;
		this.beginTime = beginTime;
		this.endTime = endTime;
		this.remark = remark;
		this.gardenName = gardenName;
	}


	/** full constructor */
	public WyCarportFee(String gardenid, String carportid, String carportCode,
			String roomCode, String prjcode, String prjname, BigDecimal price,
			Integer isfee, String cycle, String cycleUnit, Integer cycleNum,
			Date beginTime, Date endTime, String remark,
			String createBy, Date createTime, String updateBy,
			Date updateTime) {
		this.gardenid = gardenid;
		this.carportid = carportid;
		this.carportCode = carportCode;
		this.roomCode = roomCode;
		this.prjcode = prjcode;
		this.prjname = prjname;
		this.price = price;
		this.isfee = isfee;
		this.cycle = cycle;
		this.cycleUnit = cycleUnit;
		this.cycleNum = cycleNum;
		this.beginTime = beginTime;
		this.endTime = endTime;
		this.remark = remark;
		this.createBy = createBy;
		this.createTime = createTime;
		this.updateBy = updateBy;
		this.updateTime = updateTime;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "uuid.hex")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "feeid", unique = true, nullable = false, length = 32)
	public String getFeeid() {
		return this.feeid;
	}

	public void setFeeid(String feeid) {
		this.feeid = feeid;
	}

	@Column(name = "gardenid", length = 32)
	public String getGardenid() {
		return this.gardenid;
	}

	public void setGardenid(String gardenid) {
		this.gardenid = gardenid;
	}

	@Column(name = "areaid", length = 32)
	public String getAreaid() {
		return areaid;
	}

	public void setAreaid(String areaid) {
		this.areaid = areaid;
	}

	@Column(name = "carportid", length = 32)
	public String getCarportid() {
		return this.carportid;
	}

	public void setCarportid(String carportid) {
		this.carportid = carportid;
	}

	@Column(name = "carport_code", length = 50)
	public String getCarportCode() {
		return this.carportCode;
	}

	public void setCarportCode(String carportCode) {
		this.carportCode = carportCode;
	}

	@Column(name = "room_code", length = 50)
	public String getRoomCode() {
		return this.roomCode;
	}

	public void setRoomCode(String roomCode) {
		this.roomCode = roomCode;
	}

	@Column(name = "prjcode", length = 50)
	public String getPrjcode() {
		return this.prjcode;
	}

	public void setPrjcode(String prjcode) {
		this.prjcode = prjcode;
	}

	@Column(name = "prjname", length = 50)
	public String getPrjname() {
		return this.prjname;
	}

	public void setPrjname(String prjname) {
		this.prjname = prjname;
	}

	@Column(name = "price", precision = 12, scale = 2)
	public BigDecimal getPrice() {
		return this.price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	@Column(name = "isfee")
	public Integer getIsfee() {
		return this.isfee;
	}

	public void setIsfee(Integer isfee) {
		this.isfee = isfee;
	}

	@Column(name = "cycle", length = 50)
	public String getCycle() {
		return this.cycle;
	}

	public void setCycle(String cycle) {
		this.cycle = cycle;
	}

	@Column(name = "cycle_unit", length = 50)
	public String getCycleUnit() {
		return this.cycleUnit;
	}

	public void setCycleUnit(String cycleUnit) {
		this.cycleUnit = cycleUnit;
	}

	@Column(name = "cycle_num")
	public Integer getCycleNum() {
		return this.cycleNum;
	}

	public void setCycleNum(Integer cycleNum) {
		this.cycleNum = cycleNum;
	}

	@Column(name = "begin_time", length = 23)
	public Date getBeginTime() {
		return this.beginTime;
	}

	public void setBeginTime(Date beginTime) {
		this.beginTime = beginTime;
	}

	@Column(name = "end_time", length = 23)
	public Date getEndTime() {
		return this.endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	@Column(name = "remark", length = 2000)
	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Column(name = "create_by", length = 50)
	public String getCreateBy() {
		return this.createBy;
	}

	public void setCreateBy(String createBy) {
		this.createBy = createBy;
	}

	@Column(name = "create_time", length = 23)
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Column(name = "update_by", length = 50)
	public String getUpdateBy() {
		return this.updateBy;
	}

	public void setUpdateBy(String updateBy) {
		this.updateBy = updateBy;
	}

	@Column(name = "update_time", length = 23)
	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	
	@Transient
	public String getGardenName() {
		return gardenName;
	}
	public void setGardenName(String gardenName) {
		this.gardenName = gardenName;
	}
	
}